package com.sc.controller.patrol;

import com.sc.result.Result;
import com.sc.service.patrol.PatrolRecordsService;
import org.springframework.web.bind.annotation.*;

/*
 * 巡更记录
 * @author:Zuiliu
 * 功能：作列表展示
 *
 * */
@RestController
@RequestMapping("/patrolWriter")
@CrossOrigin
public class PatrolRecordsController {
    final
    PatrolRecordsService ivrs;

    public PatrolRecordsController(PatrolRecordsService ivrs) {
        this.ivrs = ivrs;
    }

    //列表展示
    @GetMapping("/listPatrolWriter")
    public Result listPatrolWriter() {
        ivrs.list();
        return Result.success();
    }
}
